package cn.kgc.mapper;

import cn.kgc.entity.Emp;
import cn.kgc.unit.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmpMapper {
    public List<Emp> getAllEmp(Page page);

    public Emp getEmpById(Integer id);

    public  void addEmp(Emp emp);

    public void  updateEmp(Emp emp);

    public  void deleteEmpById(Integer id);
    Integer countEmpByName(String name);

}
